from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
import time

driver = webdriver.Chrome(service=Service('chromedriver.exe'))
driver.maximize_window()
driver.get('http://www.baidu.com')
time.sleep(2)
xuan = driver.find_element(By.XPATH, '//*[@id="hotsearch-content-wrapper"]/li[1]/a/span[2]')
ActionChains(driver).move_to_element(xuan).perform()
time.sleep(20)